package class202204._21_25;

class Base2{
    public int a =1;
    public int b = 2;

    public void method(){
        System.out.println("Base2::method()");
    }

}
class Derived2 extends Base2{
    public int c = 3;
    public  int d = 4;

    public void method(int a){
        System.out.println("Derived2::method()"+a);
    }



    public  void test(){
        method();
        method(10);
        /*System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);*/
    }
}
public class TestDemo {
    public static void main(String[] args) {
        Derived2 derived2 = new Derived2();
        derived2.test();
    }
}
